load("//tools:cpplint.bzl", "cpplint")

package(default_visibility = ["//visibility:public"])

cc_library(
    name = "io_util",
    srcs = [
        "io_util.cc",
    ],
    hdrs = [
        "io_util.h",
    ],
    linkopts = [
        "-lboost_filesystem",
    ],
    deps = [
        "//cyber",
        "//modules/common/util:string_util",
        "//modules/perception/base:camera",
        "//modules/perception/base:distortion_model",
        "//modules/perception/base:omnidirectional_model",
        "//modules/perception/common/geometry:basic",
        "@eigen",
        "@yaml_cpp//:yaml",
    ],
)

cc_test(
    name = "io_util_test",
    size = "small",
    srcs = [
        "io_util_test.cc",
    ],
    data = [
        "//modules/perception:perception_testdata",
    ],
    deps = [
        ":io_util",
        "@gtest//:main",
    ],
)

cpplint()
